<?php
//foreach ($this->items as $value) {
//	echo "{$value["nombresede"]} |{$value["codsede"]}\n";
//}
$result = array();
foreach ($this->items as $value) {
    $result[] = array("label"=>$value["nombresede"], "value"=>$value["codsede"]);
}
echo json_encode($result);